//根据model反查label

export const getLabelByModel = function(model, data) {
    for (let cate of data) {
      if (cate.model === model) {
        return cate.label;
      }
    }
    return null; // 如果未找到对应的 label，则返回 null
}
//根据label反查model

export const getModelByLabel = function(label, data) {
    for (let cate of data) {
      if (cate.label === label) {
        return cate.model;
      }
    }
    return null;
}
//合同类别
export const  contractType = [
    { model: 0, label: '开发' },
    { model: 1, label: '转让' },
    { model: 2, label: '咨询' },
    { model: 3, label: '服务' },
    ]
//合同状态
export const  contractStatus =  [
    { model: 0, label: '在研' },
    { model: 1, label: '已完成' },
    { model: 2, label: '终止' },
    ]
//甲方类别
export const  partyACate =[
    { model: 0, label: '国有企业' },
    { model: 1, label: '集体企业' },
    { model: 2, label: '私营企业' },
    { model: 3, label: '科研机构' },
    ]
//量化项目大类
export const  projectCate = [ 
    { model: 0, label: '自然科学' },
    { model: 1, label: '人文社科' }
    ]
//创作类成果
export const creativeAchievements = [
    { model: 0, label: '文学艺术类' },
    { model: 1, label: '美术、音乐、新闻传媒类' },
    { model: 2, label: '体育类' }
    ];
//教学研究类别
export const teachResearchCate = [
    { model:  '教改项目', label: '教改项目' },
    { model: '到账经费', label: '到账经费' },
    { model: '教材', label: '教材' },
    { model: '教学成果', label: '教学成果' },
    { model: '其他成果' , label: '其他成果' },
    ];
//教学研究成果级别
export const teachResearchGrade = [
    { model:  '国家级', label: '国家级' },
    { model: '省级', label: '省级' },
    { model: '厅级', label: '厅级' },
    { model: '校级', label: '校级' },
    ];
//成果等级-教研业绩管理-教学竞赛-成果类别
export const resultCate = [
    {
        "label": "国家级",
        "model": "国家级"
    },
    {
        "label": "省级",
        "model": "省级"
    },
    {
        "label": "厅级",
        "model": "厅级"
    },
    {
        "label": "校级",
        "model": "校级"
    }
]
  //成果等级-教研业绩管理-教学竞赛-成果级别
  export const resultGrade = [
    {
        "model": "特等奖",
        "label": "特等奖"
    },
    {
        "model": "一等奖",
        "label": "一等奖"
    },
    {
        "model": "二等奖",
        "label": "二等奖"
    },
    {
        "model": "三等奖",
        "label": "三等奖"
    }
]

//项目管理   横向项目,结项状态
export const  projectGrade =  [
    { model: 0, label: '在研' },
    { model: 1, label: '合格' },
    { model: 2, label: '良好' },
    { model: 3, label: '优秀' },

]



//科研成果  论文类别
export const  thesisCategory =  [
    { model: 0, label: '期刊' },
    { model: 1, label: '会议' }
]


//科研平台  平台建设性质
export const  platAttr =  [
    { model: 0, label: '独建' },
    { model: 1, label: '共享' }
]


//科研平台  平台建状态
export const  platState =  [
    {label: "未验收",model: 0,},
    {label: "已验收",model: 1,},
    {label: "撤销", model: 2,},
  ]

//成果管理/科研成果管理/知识产权/审核状态
export const knwoledageState = [
    {label: "未审核",model: 0,},
    {label: "院级通过",model: 1,},
    {label: "校级通过", model: 2,},
]